Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite agg extended bounds #4989

Merged
merged 5 commits into from
May 16, 2024
Merged

Conversation

trinity-1686a
Copy link
Contributor

@trinity-1686a trinity-1686a commented May 15, 2024

Description

fix #4926
remove extended bounds from histogram aggregations at the leaf_search_single_split level.
This should make it possible for the partial request cache to hit on dashboards using that feature, such as grafana.
cc @PSeitz

How was this PR tested?

added integration test to verify the behavior doesn't change
added unit test to verify we rewrite the bounds at both top and leaf level
manually tested a few (manually wrote) aggregation and verify cache metrics record hits when expected.

@trinity-1686a trinity-1686a requested a review from fulmicoton May 15, 2024 14:31
}
});
if modified_something {
if let Ok(serialized_aggregation) = serde_json::to_string(&aggregations) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can use expect here

@trinity-1686a trinity-1686a merged commit d0f267e into main May 16, 2024
5 checks passed
@trinity-1686a trinity-1686a deleted the trinity/rewrite-agg-extended-bounds branch May 16, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

partial request cache still not working when deriving metrics from documents
2 participants